package com.qf.day07.weapon;

public class Weapon {
    private String name;
    private int attack;

    public Weapon() {
    }

    public Weapon(String name, int attack) {
        this.name = name;
        this.attack = attack;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return attack
     */
    public int getAttack() {
        return attack;
    }

    /**
     * 设置
     * @param attack
     */
    public void setAttack(int attack) {
        this.attack = attack;
    }

    public String toString() {
        return "Weapon{name = " + name + ", attack = " + attack + "}";
    }
}
